def func1():
    print("func1开始了")
    num = 1 / 0
    print("func1结束了")


def func2():
    print("func2开始了")
    func1()
    print("func2结束了")


def main():
    try:
        func2()
    except Exception as e:
        print(e)


main()
